<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登陆</title>
<script type="text/javascript">


function submitLoginForm()
{   
    var username=document.getElementById("username").value;
    var password=document.getElementById("password").value;
    if(username=="" )
    {
        alert("请输入用户名");
        return;
    }   
    if(password=="")
    {
        alert("请输入密码");
        return;
    }   

    if(document.getElementById("status"))
    {
        document.getElementById("status").innerHTML="<font color=red size=2>登陆中<br>请稍候<br>...</font>";
        setTimeout('clearStatus()',10000);
    }

    var frm = document.getElementById("frm");
    if(frm)
    {
        frm.submit();
    }
}

</script>
</head>
<body>

<form id="frm" name="frm" method="post"  action="login.do" >

  <p>&nbsp;</p>
  <table width="301" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999" class="p12blue">
    <tr>
      <td height="30" colspan="2" align="center" valign="middle" bgcolor="#E6E6E6" class="con9b">【客服人员登陆】</td>
    </tr>
    <tr>
      <td width="56" height="30" align="right" valign="middle" bgcolor="#FFFFFF" class="con9b">用户名</td>
      <td width="188" height="30" bgcolor="#FFFFFF" align="left">&nbsp; 
        <input name="username" type="text" class="inp" id="username" value="" />
      </td>
    </tr>
    
    <tr>
      <td height="30" align="right" valign="middle" bgcolor="#FFFFFF" class="con9b">密码</td>
      <td height="30" bgcolor="#FFFFFF" align="left">&nbsp;
          <input name="password" type="password" class="inp" id="password"  onkeyup="ifPressReturn()" value="" />
      </td>
    </tr>

    <tr>
    <td colspan="2">
       <table width="301" border="0" align="center" cellpadding="0" cellspacing="0">
	       <tr>
		      <td width="50%" height="30" align="center" valign="bottom" bgcolor="#FFFFFF">
		        <img src="./img/login.gif" width="68" height="25" onclick="submitLoginForm();" style="cursor:hand" />
		        &nbsp;
		      </td>
		      
		      <td width="50%" height="30" align="center" valign="bottom" bgcolor="#FFFFFF">
		        <img src="./img/reg.gif" width="68" height="25" onClick="javascript:location.assign('reg.htm');" style="cursor:hand" />
		        &nbsp;
		      </td>
	      <tr>
      </table>
    </td>
    </tr>
  </table>
</form>
</body>
</html>